package com.lightheart.sphr.xiaobinggan.shadow;


import android.view.View;

import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.base.BaseActivity;
import com.lightheart.sphr.xiaobinggan.module.home.presenter.HomePresenter;
import com.lihang.ShadowLayout;

import butterknife.BindView;
import butterknife.OnClick;

public class ShapeActivity extends BaseActivity<HomePresenter> implements View.OnClickListener {

    @BindView(R.id.ShadowLayout_image)
     ShadowLayout ShadowLayoutImage;

    @BindView(R.id.shadowLayout_select)
     ShadowLayout shadowLayoutSelect;

    @BindView(R.id.shadowLayout_bindView)
     ShadowLayout shadowLayoutBindView;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_shape;
    }

    @Override
    protected void initInjector() {
     mActivityComponent.inject(this);
    }

    @Override
    protected void initView() {

    }


    @OnClick({R.id.ShadowLayout_image, R.id.shadowLayout_bar_left, R.id.shadowLayout_select, R.id.shadowLayout_bindView})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ShadowLayout_image:
                ShadowLayoutImage.setSelected(!ShadowLayoutImage.isSelected());
                break;
            case R.id.shadowLayout_bar_left:
                finish();
                break;
            case R.id.shadowLayout_select:
                shadowLayoutSelect.setSelected(!shadowLayoutSelect.isSelected());
                break;
            case R.id.shadowLayout_bindView:
                shadowLayoutBindView.setSelected(!shadowLayoutBindView.isSelected());
                break;

            default:
                break;
        }
    }
}